package cn.wolfcode.crm.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;
/*
* 缴费清单类
* */
import java.math.BigDecimal;
import java.util.Date;

@Setter
@Getter
public class PaymentBill {

    //未缴费状态
    public static final Integer NO_PAY = 4;
    //缴费状态
    public static final Integer PAY = 5;

    //保单编码
    private Long id;

    //投保人
    private Client policyClient;

    //保单编号
    private String number;

    //保单总价格
    private BigDecimal price;

    //设置保单状态,默认状态为未缴费状态
    private Integer state = NO_PAY;

    //保险年限
    private Integer limitYear;

    //保险产品的公司
    private Company company;

    //审核保单的日期
    @JsonFormat(pattern = "yyyy-MM-dd", timezone="GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date underwritingDate;


}